import request from '@/utils/request'

// 查询rule列表
export function listAppRule(query) {
  return request({
    url: '/yun/appRule/list',
    method: 'get',
    params: query
  })
}

// 查询rule详细
export function getAppRule(id) {
  return request({
    url: '/yun/appRule/' + id,
    method: 'get'
  })
}

// 新增rule
export function addAppRule(data) {
  return request({
    url: '/yun/appRule',
    method: 'post',
    data: data
  })
}

// 修改rule
export function updateAppRule(data) {
  return request({
    url: '/yun/appRule',
    method: 'put',
    data: data
  })
}

// 删除rule
export function delAppRule(id) {
  return request({
    url: '/yun/appRule/' + id,
    method: 'delete'
  })
}
